package Micolectvio.forms;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPasswordField;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.JLabel;
import java.awt.Window.Type;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import javax.swing.JEditorPane;
import javax.swing.ImageIcon;

public class Colectivo {

	private JFrame frmInicioDeSesion;
	private JPasswordField passwordField;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Colectivo window = new Colectivo();
					window.frmInicioDeSesion.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Colectivo() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmInicioDeSesion = new JFrame();
		frmInicioDeSesion.setTitle("Inicio De Sesion");
		frmInicioDeSesion.setType(Type.UTILITY);
		frmInicioDeSesion.setBounds(100, 100, 456, 248);
		frmInicioDeSesion.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frmInicioDeSesion.getContentPane().setLayout(null);
		
		JButton btnIngresar = new JButton("Ingresar");
		btnIngresar.setHorizontalAlignment(SwingConstants.RIGHT);
		btnIngresar.setBounds(251, 102, 84, 23);
		frmInicioDeSesion.getContentPane().add(btnIngresar);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.setHorizontalAlignment(SwingConstants.RIGHT);
		btnCancelar.setBounds(345, 102, 84, 23);
		frmInicioDeSesion.getContentPane().add(btnCancelar);
		
		passwordField = new JPasswordField();
		passwordField.setBounds(345, 65, 86, 20);
		frmInicioDeSesion.getContentPane().add(passwordField);
		
		textField = new JTextField();
		textField.setBounds(345, 37, 86, 20);
		frmInicioDeSesion.getContentPane().add(textField);
		textField.setColumns(10);
		
		JLabel lblUsuario = new JLabel("");
		lblUsuario.setIcon(new ImageIcon("C:\\Users\\Gerardo\\Desktop\\Proyecto-colectivo\\04-10-2014 11-05-49 a-m-.png"));
		lblUsuario.setBounds(10, 11, 200, 188);
		frmInicioDeSesion.getContentPane().add(lblUsuario);
		
		JLabel lblContrasea = new JLabel("Contrase\u00F1a");
		lblContrasea.setBounds(254, 68, 70, 14);
		frmInicioDeSesion.getContentPane().add(lblContrasea);
		
		JLabel lblUsuario_1 = new JLabel("Usuario");
		lblUsuario_1.setBounds(254, 40, 70, 14);
		frmInicioDeSesion.getContentPane().add(lblUsuario_1);
	}
}
